import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import ArcoVue from '@arco-design/web-vue'
import ArcoVueIcon from '@arco-design/web-vue/es/icon'
import router from './router'
import App from './App.vue'

// 引入样式文件
import '@arco-design/web-vue/dist/arco.css'
import './styles/theme.scss'
import './styles/index.scss'
import 'nprogress/nprogress.css'

const app = createApp(App)
const pinia = createPinia()

// 使用pinia持久化插件
pinia.use(piniaPluginPersistedstate)

app.use(pinia)
app.use(router)
app.use(ArcoVue)
app.use(ArcoVueIcon)

app.mount('#app') 